<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript">
			
			var str = prompt("请输出任意的内容:");
			
			//var arr = str.split("");
			
			//arr.reverse();
			
			//str = arr.join("");
			
			str = str.split("").reverse().join("");
			
			alert(str);
			
		</script>
	</head>
	<body>
		
	</body>
</html>
